package itsm.isperp.framework.service.impl;

import itsm.isperp.framework.domain.EnumObject;
import itsm.isperp.framework.manager.EnumManager;
import itsm.isperp.framework.service.IEnumService;

/**
 * 枚举服务接口实现类
 * 
 */
public class EnumServiceImpl implements IEnumService {

	protected EnumManager enumManager;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * itsm.isperp.framework.service.EnumService#finalEnumObjectByCategoryId
	 * (java.lang .String)
	 */
	public Iterable<EnumObject> findEnumObjectByCategoryId(
			final String categoryId) {
		return enumManager.findByCategoryId(categoryId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * itsm.isperp.framework.service.EnumService#findEnumObjectById(java.lang
	 * .String)
	 */
	public EnumObject findEnumObjectById(String id) {
		return this.enumManager.findOne(id);

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * itsm.isperp.framework.service.EnumService#findEnumObjectByEnumObjectInfo
	 * (itsm.isperp.framework.domain.EnumObject)
	 */
	public Iterable<EnumObject> findEnumObjectByEnumObjectInfo(
			EnumObject enumObjectInfo) {
		return this.enumManager.findByEnumObjectInfo(enumObjectInfo);
	}

}
